const getTimeItem = (prop, label) => {
  return {
    prop,
    label,
    type: 'datePicker',
    datePickerType: 'datetimerange',
    defaultTime: ['00:00:00', '23:59:59']
  }
}
const formItemList = [
  {
    prop: 'qualificationName',
    label: '资质名称',
    type: 'input',
  },
  {
    prop: 'supplyName',
    label: '供应商名称',
    type: 'input'
  },
  {
    prop: 'supplyNo',
    label: '供应商编码',
    type: 'input'
  },
  {
    prop: 'supplierManageAreaName',
    label: '供应商管理区域',
    type: 'input'
  },
  {
    prop: 'purchaseAttributionName',
    label: '归属中心',
    type: 'input'
  },
  getTimeItem('createOpeTime', '创建时间'),
  getTimeItem('opeTime', '更新时间'),
  {
    prop: 'expireDateStart',
    label: '过期时间-开始',
    type: 'date'
  },
  {
    prop: 'expireDateEnd',
    label: '过期时间-结束',
    type: 'date'
  },
  {
    prop: 'supplierStatusName',
    label: '供应商状态',
    type: 'select',
    options: [
      { value: '合格', label: '合格' },
      { value: '潜在', label: '潜在' },
    ],
    clearable: true
  }
]

const tableColumns = [
  {
    title: '资质名称',
    key: 'qualificationName',
  },
  {
    title: '资质类型',
    key: 'qualificationCateName',
  },
  {
    title: '供应商名称',
    key: 'supplyName',
  },
  {
    title: '供应商编码',
    key: 'supplyNo',
  },
  {
    title: '供应商状态',
    key: 'supplierStatusName',
  },
  {
    title: '供应商管理区域',
    key: 'supplierManageAreaName',
  },
  {
    title: '归属中心',
    key: 'purchaseAttributionName',
  },
  {
    title: '过期时间',
    key: 'expireDate',
  },
  {
    title: '创建时间',
    key: 'createOpeTime',
  },
  {
    title: '更新时间',
    key: 'opeTime',
  }
]
export {
  formItemList,
  tableColumns
}
